package com.epoint.mobileoa.bizlogic.mobileoa;

import java.util.HashMap;

import android.os.Message;

import com.epoint.mobileoa.bizlogic.SuperView;
import com.epoint.mobileoa.bizlogic.Task;
import com.epoint.mobileoa.http.HttpHelp;
import com.epoint.mobileoa.tools.StringHelp;

/**
 * @author liyc
 * @time 2012-2-22 上午2:15:41
 * @annotation 
 */
public class GetWDMailNumsTask extends Task {

	/**
	 * @param con
	 * @param param
	 */
	public GetWDMailNumsTask(SuperView con, HashMap<String, Object> param) {
		super(con, param);
		
	}

	@Override
	public void exectue(Message mess) throws Exception {
		String seamurl = getCon().fp.getSeamurl()+"?requestType=GetWDMailNums&userguid="+getCon().fp.getUserguid();
		String bs = HttpHelp.getHttpBack(seamurl);
		String nums = StringHelp.getXMLAtt(bs, "count");
		setMessageToRefreshUI(mess, getCon(), nums);
	}

}
